package com.linkhub.oms.data.sync.job;

import com.linkhub.oms.data.sync.service.ShopifyDataSyncBizService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * @Description: ShopifyShopProductSyncJob
 * @Author: echo
 * @Date: 2024/3/23 21:31
 * @Version: 1.0
 */
@Slf4j
@Component
public class ShopifyShopProductSyncJob {


    @Resource
    private ShopifyDataSyncBizService shopifyDataSyncBizService;
    @Scheduled(cron = "0 0 1 * * ?")
    public void shopifyShopProductSyncJob() {
        log.info("ShopifyShopProductSyncJob start...");
        shopifyDataSyncBizService.syncAllShopProducts();
        log.info("ShopifyShopProductSyncJob end...");
    }
}
